package com.hyopt.modules.app.controller;

import cn.hutool.core.date.DateUtil;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hyopt.common.utils.QueryExt;
import com.hyopt.common.utils.R;
import com.hyopt.modules.app.domain.SysMaterial;
import com.hyopt.modules.app.service.CustomInfoService;
import com.hyopt.modules.app.service.SysMaterialService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.awt.*;
import java.text.SimpleDateFormat;
import java.util.List;
import java.util.Map;

/**
 * @ClassName ApiChatGPTController
 * @Description 测试一下
 * @Author lijie
 * @Date 2024-8-28 10:30:41
 * @Version 1.0
 */
@RestController
@RequestMapping("/api/test")
@Api(value = "ApiCustomController", tags = {"测试一下"})
public class ApiTestController {
    @Autowired
    SysMaterialService materialService;


    @GetMapping("/getList")
    @ApiOperation("测试一下")
    public R getList() {
        List<SysMaterial> list = materialService.list();
        return R.ok().put("data", list);
    }

}
